package org.example;

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Student student = new Student();
        Scanner in = new Scanner(System.in);
        System.out.println("请输入此生的信息！");
        System.out.print("姓名：");
        student.setName(in.nextLine());
        System.out.print("性别：");
        student.setGender(in.nextLine());
        System.out.print("学号：");
        student.setNumber(in.nextLine());
        System.out.print("入学日期：");
        student.setDate(in.nextLine());
        System.out.println("该生的信息为：");
        student.getInfo();
    }
}
